package mx.com.matersys.vacs.domain;

import java.util.Set;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.TableGenerator;

import org.springframework.roo.addon.dbre.RooDbManaged;
import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooEntity(versionField = "", table = "rol")

public class Rol {
	@Id
	@TableGenerator(name = "GEN_ROL", table = "sequence", pkColumnName = "SEQ_NAME", valueColumnName = "SEQ_COUNT", pkColumnValue = "SEQ_ROL", allocationSize = 1)
	@GeneratedValue(strategy=GenerationType.TABLE, generator="GEN_ROL")
    @Column(name = "idrol")
    private Integer idrol;
	
	@OneToMany(mappedBy = "idrol")
    private Set<UserVacs> userVacss;
    
    @Column(name = "descripcion", length = 40)
    private String descripcion;
    
    @Column(name = "tipoRol", length = 40)
    private String tipoRol;
}
